package org.spamforces.dao;

import org.spamforces.model.Broadcast;

import java.util.Date;
import java.util.List;

/**
 * @author IvanPopelyshev (ivan.popelyshev@gmail.com)
 */
public interface BroadcastDao {
    Broadcast find(long id);

    List<Broadcast> findAll();

    List<Broadcast> peek();

    void update(Broadcast broadcast);

    void save(Broadcast broadcast);

    void delete(Broadcast broadcast);

    Date findNow();
}
